<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/vue2/js/vue.js"></script>
</head>
<body>

    <div id="app">
        <div>html代码是:{{htmlInfo}}</div>
       <div>原始html是:<div v-html="htmlInfo"><div></div>
    </div>

    <div class="memo">
        <br />v-html 对html进行解析
        <br /> 直接{{ 不进行解析
       
    </div>

    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                htmlInfo:"<a href='https://www.baidu.com'>百度</a>",
                
            },
            methods:{
                
            }
            
        });
    </script>
</body>
</html>